package com.ruoyi.im.mapper;


import com.ruoyi.im.entity.IMSysArea;
import com.ruoyi.im.vo.IMAreaNode;
import com.ruoyi.im.vo.IMAreaTreeVo;
import com.ruoyi.im.vo.IMAreaVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IMSysAreaMapper {

    IMSysArea selectById(@Param("id") Integer id);

	List<IMSysArea> selectByPingYin(@Param("pingyin") String pingyin);

    List<IMSysArea> selectByShortName(@Param("shortName") String shortName);

    List<IMSysArea> selectByPosition(@Param("lng") Float lng,@Param("lat") Float lat);

    List<IMAreaTreeVo> selectAll(IMSysArea record);

    List<IMAreaTreeVo> selectAreaByCityId(IMSysArea record);

    List<IMAreaTreeVo> selectAreaById(IMSysArea record);

    List<IMAreaVo> selectAreaTree(IMSysArea record);

    int insertSysArea(IMSysArea record);

    int updateSysArea(IMSysArea record);
}
